package com.gongzonqiang.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Data;

@Data
@Table(name = "`message`")
public class Message {
    @Id
    @Column(name = "`message_id`")
    private Long messageId;

    @Column(name = "`openId`")
    private String openid;

    @Column(name = "`notice_id`")
    private Long noticeId;

    /**
     * 0未读 1已读
     */
    @Column(name = "`statu`")
    private Integer statu;

    @Column(name = "`create_date`",insertable=false)
    private Date createDate;


    /**
     * @return mssage_id
     */
    public Long getMessageId() {
        return messageId;
    }

    /**
     * @param mssageId
     */
    public void setMessageId(Long messageId) {
        this.messageId = messageId;
    }

    /**
     * @return openId
     */
    public String getOpenid() {
        return openid;
    }

    /**
     * @param openid
     */
    public void setOpenid(String openid) {
        this.openid = openid;
    }

    /**
     * @return notice_id
     */
    public Long getNoticeId() {
        return noticeId;
    }

    /**
     * @param noticeId
     */
    public void setNoticeId(Long noticeId) {
        this.noticeId = noticeId;
    }

    /**
     * 获取0未读 1已读
     *
     * @return statu - 0未读 1已读
     */
    public Integer getStatu() {
        return statu;
    }

    /**
     * 设置0未读 1已读
     *
     * @param statu 0未读 1已读
     */
    public void setStatu(Integer statu) {
        this.statu = statu;
    }

    /**
     * @return create_date
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @param createDate
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}